<%--
  Created by IntelliJ IDEA.
  User: apple
  Date: 2019/7/6
  Time: 16:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
%>
<div id="title">
    <h1>我的回答</h1>
    <label></label>
</div>
<datalist>
    <table width="684px" border="0" cellspacing="15" cellpadding="0">
        <tr>
            <th>序号</th>
            <th>问题</th>
            <th>我的回答</th>
            <th>发布时间</th>
            <th>是否采纳</th>
        </tr>
        <c:forEach items="${requestScope.pageInfo.list}" var="answer" varStatus="stat">
            <tr>
                <td>${stat.count}</td>
                <td>${answer.question.title}</td>
                <td>${answer.description}</td>
                <td>${answer.inputTime}</td>
                <c:if test="${answer.accepted eq true}">
                <td>采纳</td>
                </c:if>
                <c:if test="${answer.accepted eq false}">
                <td>未采纳</td>
                </c:if>

            </tr>
        </c:forEach>

    </table>
</datalist>
<div class="pagination ">
    <c:forEach items="${requestScope.pageInfo.navigatepageNums}" var="i">
        <a href="javascript:void(0)" class="number current">${i}</a>
    </c:forEach>
</div>
